'''
Created on 19.01.2012

@author: cwestphal & slanger
'''


import sys
import maya.cmds as cmds
import maya.utils as utils

fatSuitPath = 'P:/10_script/fatSuit'
kugelToolsPath = 'P:/10_script/kugelTools'

if fatSuitPath in sys.path:
    print ''
else:
    sys.path.append(fatSuitPath)


if kugelToolsPath in sys.path:
    print ''
else:
    sys.path.append(kugelToolsPath)
	
import fatSuit
import fatSuitMenu    

import os
import maya.mel
import gepard as g
    
def init ():
       
    fatSuitMenu.createUI()
    
utils.executeDeferred('init ()')




class KugelTools:
    def __init__(self):
        cmds.evalDeferred("myMenu = cmds.menu( label='kugelTools', p='MayaWindow', tearOff= True)")
        cmds.evalDeferred("cmds.menuItem(l = 'refresh')")
        cmds.evalDeferred("cmds.menuItem(divider = True)")
        cmds.evalDeferred("cmds.menuItem(l = 'IK', c = g.ikSwitch)")
        cmds.evalDeferred("cmds.menuItem(l = 'FK', c = g.fkSwitch)")
        cmds.evalDeferred("cmds.menuItem(divider = True)")
        cmds.evalDeferred("cmds.menuItem(subMenu = True, l = 'align')")
        cmds.evalDeferred("cmds.menuItem(l = 'FK to IK', c = g.fkAlign)")
        
        cmds.evalDeferred("cmds.setParent('..', menu = True)")
        cmds.evalDeferred("cmds.menuItem(subMenu = True, l = 'follow shoulder')")
        cmds.evalDeferred("cmds.menuItem(l = 'follow', c = g.wristFollow)")
        cmds.evalDeferred("cmds.menuItem(l = 'stay', c = g.wristNotFollow)")
        cmds.evalDeferred("cmds.setParent('..', menu = True)")
        cmds.evalDeferred("cmds.menuItem(subMenu = True, l = 'selection sets')")
        cmds.evalDeferred("cmds.menuItem(l = 'all', c = g.selectAll)")
        cmds.evalDeferred("cmds.menuItem(l = 'head', c = g.selectHead)")
        cmds.evalDeferred("cmds.menuItem(l = 'current ear')")
        cmds.evalDeferred("cmds.menuItem(l = 'tail LV1')")
        cmds.evalDeferred("cmds.menuItem(l = 'tail LV2')")
        cmds.evalDeferred("cmds.menuItem(l = 'tail LV3')")
        cmds.evalDeferred("cmds.menuItem(l = 'current FK leg')")
        cmds.evalDeferred("cmds.menuItem(l = 'current FK foot')")
        cmds.evalDeferred("cmds.menuItem(l = 'current IK wrist')")
        cmds.evalDeferred("cmds.menuItem(l = 'current IK shoulder')")
        cmds.evalDeferred("cmds.setParent('..', menu = True)")
        cmds.evalDeferred("cmds.menuItem(subMenu = True, l = 'pose library')")
        cmds.evalDeferred("cmds.menuItem(l = 'bind pose', c = g.goToBindPose)")
    
    
    def deleteKugelTools(self):
        cmds.deleteUI(self.myMenu)

k = KugelTools()
k.deleteKugelTools()